
import type {
  Effect,
  Reducer,
  Subscription,
} from 'umi';

export interface CommonModelState {
  name: string;

}

export interface Effects {
  query: Effect;
}

export interface CommonModelType {
  namespace: 'commonState';
  state: CommonModelState;
  effects: Effects;
  reducers: {
    save: Reducer<CommonModelState>;
  };
  subscriptions: { setup: Subscription };
}

export interface CommonState {
  commonState: CommonModelState;
}

/**所有的state */
export interface AllState {
  commonState: CommonModelState;
}
